package com.service;

import java.util.ArrayList;

import com.dao.UsersDao;
import com.model.Users;

public class UsersService {
	private UsersDao usersDao;
	public void setUsersDao(UsersDao usersDao) {
		this.usersDao = usersDao;
	}
	
	public void save(Users users){
		usersDao.insert_hibernate(users);
	}
	
	public ArrayList<Users> getAll(){
		return usersDao.getList_hibernate();
	}
	
	public Users found(String name ,String password) {
		return usersDao.found_hibernate(name, password);
	}
}
